"""searchApi URL Configuration

The `urlpatterns` list routes URLs to views. For more information please see:
    https://docs.djangoproject.com/en/1.11/topics/http/urls/
Examples:
Function views
    1. Add an import:  from my_app import views
    2. Add a URL to urlpatterns:  url(r'^$', views.home, name='home')
Class-based views
    1. Add an import:  from other_app.views import Home
    2. Add a URL to urlpatterns:  url(r'^$', Home.as_view(), name='home')
Including another URLconf
    1. Import the include() function: from django.conf.urls import url, include
    2. Add a URL to urlpatterns:  url(r'^blog/', include('blog.urls'))
"""
from django.conf.urls import url
from django.contrib import admin

import webSite.views as bv
from searchApi import views
from webSite import dbViews



urlpatterns = [
    url(r'^admin/', admin.site.urls),
    url(r'^webSite/', bv.index),

    # url(r'^api/search/',include('demo.urls')),
    # url(r'^api/search/',views.searchAction),
    url(r'^api/getWebSiteInfo',views.getWebSiteInfoAction),
    # url(r'^api/getScrapyUrls',views.getScrapyUrls),
    url(r'^api/getItemInfoByOriginUrl',views.getItemInfoByOriginUrl),
    url(r'^api/getPageFlagByUrl',views.getPageFlagByUrl),



    url(r'^fromdb/getScrapyUrls', dbViews.getScrapyUrls),
    url(r'^fromdb/getItemInfoByOriginUrl', dbViews.getItemInfoByOriginUrl),
    url(r'^fromdb/getPageFlagByOriginUrl',dbViews.getPageFlagByOriginUrl),

    url(r'^fromdb/getWebSiteInfo', dbViews.getWebSitesdb),
]








